home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch26 / torch3.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  65 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Transform {
  6.     translation 0.0 0.0 0.2
  7.     scale 0.5 0.5 0.5
  8.     children [
  9.     # Torch handle (simplified)
  10.         Shape {
  11.             appearance DEF Gray Appearance {
  12.                 material Material { diffuseColor 0.4 0.4 0.4 }
  13.             }
  14.             geometry IndexedFaceSet {
  15.                 coord Coordinate {
  16.                     point [
  17.                         -0.15 0.0 0.0,  0.0 -1.5 0.0,
  18.                          0.15 0.0 0.0,
  19.                     ]
  20.                 }
  21.                 coordIndex [ 0, 1, 2 ]
  22.             }
  23.         },
  24.     # Fire pot (simplified)
  25.         DEF Ring Shape {
  26.             appearance USE Gray
  27.             geometry IndexedFaceSet {
  28.                 coord Coordinate {
  29.                     point [
  30.                     # First ring
  31.                         -0.40 -0.05 0.1,  0.40 -0.05 0.1,
  32.                          0.40  0.05 0.1, -0.40  0.05 0.1,
  33.                     # Second ring
  34.                         -0.40  0.15 0.1,  0.40  0.15 0.1,
  35.                          0.40  0.25 0.1, -0.40  0.25 0.1,
  36.                     ]
  37.                 }
  38.                 coordIndex [ 0, 1, 2, 3, -1,  4, 5, 6, 7, -1 ]
  39.             }
  40.         },
  41.     # Fire pot detail (eliminated)
  42.     # Mounting bracket (eliminated)
  43.     # Flames (simplified)
  44.         DEF Flames Shape {
  45.             # No appearance, use emissive shading
  46.             geometry IndexedFaceSet {
  47.                 coord Coordinate {
  48.                     point [
  49.                         0.18 0.0 0.05,  0.00 1.2 0.05,
  50.                         -0.18 0.0 0.05,
  51.                     ]
  52.                 }
  53.                 color Color {
  54.                     color [
  55.                         1.0 0.0 0.0,  0.9 0.5 0.0,
  56.                         1.0 0.0 0.0,
  57.                     ]
  58.                 }
  59.                 coordIndex [ 0, 1, 2 ]
  60.             }
  61.         }
  62.     # Additional Flames (eliminated)
  63.     ]
  64. }
  65.